/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package homework.demo01;

/**
 *
 * @author Administrator
 */
public class Library {

    private String name, price;
    private int num;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }
    public void setPrice(String price) {
        this.price = price;
    }
    public int getNum(){return num;}
    public void setNum(int num){this.num=num;}
    public Library(){}
    public Library(String name,String price,int num){
        this.name = name;
        this.price = price;
        this.num=num;
    }
    public static void main(String[] args) {
        
        Library text1 = new Library("dasdas","dsadas",146);
        System.out.println("图书价格为:"+text1.num);
        System.out.println("图书名称为:"+text1.name);
        System.out.println("图书编号为:"+text1.price);
        
    }
    
    /*
     * huangjianhao
     */
    
}
